package org.familysearch.fsapi.gwt.common.client.entities;

import java.util.ArrayList;

import org.familysearch.fsapi.gwt.common.client.entities.Gender.GenderConstant;

public class Information {
		
	private GenderConstant gender;
	private boolean living;
	private ArrayList<Identifier> alternateIds;
	
	public Information()
	{
		
	}

	public Information(GenderConstant gender) {
		super();
		this.gender = gender;
	}

	public Information(GenderConstant gender, boolean living) {
		super();
		this.gender = gender;
		this.living = living;
	}
	
	public Information(GenderConstant gender, boolean living, ArrayList<Identifier> alternateIds) {
		super();
		this.gender = gender;
		this.living = living;
		this.alternateIds = alternateIds;
	}

	public ArrayList<Identifier> getAlternateIds() {
		return alternateIds;
	}
	public void setAlternateIds(ArrayList<Identifier> alternateIds) {
		this.alternateIds = alternateIds;
	}
	public GenderConstant getGender() {
		return gender;
	}
	public void setGender(GenderConstant gender) {
		this.gender = gender;
	}
	public boolean isLiving() {
		return living;
	}
	public void setLiving(boolean living) {
		this.living = living;
	}

	public String toString() {
		String str = "[information";
		str += 	this.gender +
				"[living=" + this.living + "]";
		if(alternateIds != null)
		{
			str += alternateIds;
		}
		else
		{
			str += "[alternate-ids=null]";
		}
		str += "]";
		return str;
	}
	
	
}
